package com.ttn.student.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttn.common.core.entity.Result;
import com.ttn.common.core.entity.studentrecord.LearningProgressRecord;
import com.ttn.common.core.entity.studentrecord.query.LearningProgressQuery;
import com.ttn.common.core.entity.studentrecord.query.UnitReportQuery;

import javax.servlet.http.HttpServletRequest;

public interface LearningProgressRecordService extends IService<LearningProgressRecord> {
    /**
     * 学习地图
     *
     * @param learningProgressQuery
     * @return
     */
    Result queryLearningProgress(LearningProgressQuery learningProgressQuery);

    /**
     * 获取首页信息
     *
     * @param studentId
     * @return
     */
    Result queryHomeInformation(int studentId, HttpServletRequest request);

    Result queryLearningProgressByUnitId(int unitId, int studentId);

    Result queryUnitReport(UnitReportQuery unitReportQuery);

    int queryJudgeGrade(int studentId);
}
